inherited frmPayEdit: TfrmPayEdit
  Left = 448
  Top = 25
  Width = 818
  Height = 444
  Caption = #25903#20184#24405#20837
  PixelsPerInch = 96
  TextHeight = 12
  inherited StatusBar1: TStatusBar
    Top = 384
    Width = 802
  end
  inherited Toolbar: TRzToolbar
    Width = 802
    ToolbarControls = (
      tbmenu
      RzSpacer1
      tbprior
      tbnext
      tbsearcher
      tbcopy
      RzSpacer2
      tbnew
      tbedit
      tbdelete
      tbsave
      RzSpacer3
      tbcensor
      tbsubmit
      tbexit)
    inherited tbnew: TRzToolButton
      Hint = #26032#22686#20184#27454
    end
    inherited tbsave: TRzToolButton
      Hint = #20184#27454#20445#23384
    end
    inherited tbcensor: TRzToolButton
      Hint = #20184#27454#23457#26680
    end
    inherited tbsubmit: TRzToolButton
      Hint = #20184#27454#20837#24080
    end
  end
  inherited toppanel: TRzPanel
    Width = 802
    Height = 333
    Color = 10092543
    FrameController = FrameController
    object RzLabel1: TRzLabel
      Left = 48
      Top = 64
      Width = 128
      Height = 33
      Caption = #25910#20184#27454#21333
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -32
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
    end
    object lbl1: TLabel
      Left = 596
      Top = 69
      Width = 48
      Height = 12
      Caption = #21333#25454#32534#21495
    end
    object lbl2: TLabel
      Left = 406
      Top = 67
      Width = 48
      Height = 12
      Caption = #21333#25454#26085#26399
    end
    object lbl3: TLabel
      Left = 16
      Top = 208
      Width = 48
      Height = 12
      Caption = #25903#20184#37329#39069
    end
    object lbl4: TLabel
      Left = 16
      Top = 238
      Width = 48
      Height = 12
      Caption = #35843#24080#37329#39069
    end
    object lbl5: TLabel
      Left = 408
      Top = 93
      Width = 48
      Height = 12
      Caption = #32467#31639#24080#25143
    end
    object lbl7: TLabel
      Left = 416
      Top = 176
      Width = 24
      Height = 12
      Caption = #22791#27880
    end
    object lbl8: TLabel
      Left = 208
      Top = 176
      Width = 48
      Height = 12
      Caption = #25903#31080#21495#30721
    end
    object lbl6: TLabel
      Left = 597
      Top = 93
      Width = 48
      Height = 12
      Caption = #32467#31639#37329#39069
    end
    object RzDBLabel1: TRzDBLabel
      Left = 224
      Top = 96
      Width = 121
      Height = 33
      Font.Charset = GB2312_CHARSET
      Font.Color = clRed
      Font.Height = -24
      Font.Name = #38582#20070
      Font.Style = []
      ParentFont = False
      DataField = 'ORDERSTATE'
      DataSource = MasterDataSource
    end
    object RzLabel6: TRzLabel
      Left = 201
      Top = 297
      Width = 36
      Height = 12
      Caption = #25805#20316#21592
    end
    object RzLabel7: TRzLabel
      Left = 393
      Top = 297
      Width = 36
      Height = 12
      Caption = #23457#26680#20154
    end
    object RzPanel2: TRzPanel
      Left = 1
      Top = 1
      Width = 800
      Height = 46
      Align = alTop
      BorderInner = fsFlat
      BorderOuter = fsFlat
      FrameController = FrameController
      TabOrder = 0
      object RzLabel2: TRzLabel
        Left = 16
        Top = 16
        Width = 48
        Height = 12
        Caption = #23458#25143#21517#31216
      end
      object RzToolButton1: TRzToolButton
        Left = 240
        Top = 8
        ImageIndex = 64
        Images = CommonData.il1
        OnClick = RzToolButton1Click
      end
      object RzLabel16: TRzLabel
        Left = 272
        Top = 16
        Width = 48
        Height = 12
        AutoSize = False
        Caption = #26410#32467#37329#39069
      end
      object RzDBEdit9: TRzDBEdit
        Left = 70
        Top = 12
        Width = 163
        Height = 20
        DataSource = dsClient
        DataField = 'CLIENTNAME'
        TabOrder = 0
      end
      object RzDBEdit4: TRzDBEdit
        Left = 326
        Top = 11
        Width = 121
        Height = 20
        DataSource = dsClient
        DataField = 'remainsum'
        ReadOnly = True
        Color = clInfoBk
        TabOrder = 1
      end
    end
    object BalanceGroupBox: TRzGroupBox
      Left = 296
      Top = 200
      Width = 488
      Height = 57
      Caption = #32467#31639#20449#24687
      Enabled = False
      TabOrder = 1
      Transparent = True
      object RzLabel3: TRzLabel
        Left = 10
        Top = 24
        Width = 60
        Height = 12
        Caption = #21487#29992#24635#37329#39069
        Enabled = False
        Transparent = True
      end
      object RzLabel4: TRzLabel
        Left = 178
        Top = 24
        Width = 48
        Height = 12
        Caption = #21487#29992#32467#20313
        Enabled = False
        Transparent = True
      end
      object RzLabel5: TRzLabel
        Left = 334
        Top = 24
        Width = 48
        Height = 12
        Caption = #21097#20313#32467#20313
        Enabled = False
        Transparent = True
      end
      object RzDBEdit3: TRzDBEdit
        Left = 239
        Top = 21
        Width = 90
        Height = 20
        DataSource = MasterDataSource
        DataField = 'TOTALBEFORESUM'
        ReadOnly = True
        Color = clInfoBk
        DisabledColor = 8454143
        TabOrder = 0
      end
      object RzDBNumericEdit4: TRzDBNumericEdit
        Left = 75
        Top = 21
        Width = 97
        Height = 20
        DataSource = MasterDataSource
        DataField = 'TOTALUSESUM'
        Alignment = taLeftJustify
        TabOrder = 1
        DisplayFormat = ',0;(,0)'
      end
      object RzDBEdit2: TRzDBEdit
        Left = 384
        Top = 20
        Width = 96
        Height = 20
        DataSource = MasterDataSource
        DataField = 'REMAINBEFORESUM'
        TabOrder = 2
      end
    end
    object BeforeGroupBox: TRzGroupBox
      Left = 200
      Top = 201
      Width = 89
      Height = 57
      Caption = #20351#29992#32467#20313#27454
      Checked = False
      ShowCheckBox = True
      TabOrder = 2
      TabStop = True
      Transparent = True
      object RzDBNumericEdit1: TRzDBEdit
        Left = 5
        Top = 24
        Width = 78
        Height = 20
        DataSource = MasterDataSource
        DataField = 'BEFORESUM'
        TabOrder = 0
      end
    end
    object OrderTypeRadioGroup: TRzRadioGroup
      Left = 36
      Top = 109
      Width = 173
      Height = 49
      Columns = 3
      ItemIndex = 0
      Items.Strings = (
        #38144#21806#25910#27454
        #37319#36141#20184#27454)
      StartYPos = 8
      TabOrder = 3
      Transparent = True
      OnClick = OrderTypeRadioGroupClick
    end
    object RzDBDateTimeEdit1: TRzDBDateTimeEdit
      Left = 464
      Top = 64
      Width = 121
      Height = 20
      DataSource = MasterDataSource
      DataField = 'ORDERDATE'
      TabOrder = 4
      EditType = etDate
    end
    object RzDBEdit5: TRzDBEdit
      Left = 656
      Top = 64
      Width = 121
      Height = 20
      DataSource = MasterDataSource
      DataField = 'ORDERNUMBER'
      TabOrder = 5
    end
    object RzDBEdit6: TRzDBEdit
      Left = 464
      Top = 171
      Width = 313
      Height = 20
      DataSource = MasterDataSource
      DataField = 'ORDERNOTE'
      TabOrder = 6
    end
    object RzDBEdit7: TRzDBEdit
      Left = 263
      Top = 173
      Width = 137
      Height = 20
      DataSource = MasterDataSource
      DataField = 'ACCOUNTNUMBER'
      TabOrder = 7
    end
    object RzDBEdit1: TRzDBEdit
      Left = 72
      Top = 232
      Width = 121
      Height = 20
      DataSource = MasterDataSource
      DataField = 'ADJUSTSUM'
      TabOrder = 8
    end
    object DBLookupComboboxEh1: TDBLookupComboboxEh
      Left = 464
      Top = 88
      Width = 121
      Height = 20
      DataField = 'BANKID'
      DataSource = MasterDataSource
      EditButtons = <>
      KeyField = 'BANKID'
      ListField = 'BANKNAME;amoney'
      ListSource = dsBank
      TabOrder = 9
      Visible = True
    end
    object RzDBEdit8: TRzDBEdit
      Left = 250
      Top = 289
      Width = 121
      Height = 20
      DataSource = MasterDataSource
      DataField = 'ACTORNAME'
      Enabled = False
      TabOrder = 10
    end
    object RzDBEdit10: TRzDBEdit
      Left = 450
      Top = 292
      Width = 121
      Height = 20
      DataSource = MasterDataSource
      DataField = 'CENSOR'
      Enabled = False
      TabOrder = 11
    end
    object RzDBNumericEdit2: TRzDBEdit
      Left = 656
      Top = 88
      Width = 121
      Height = 20
      DataSource = MasterDataSource
      DataField = 'ACCOUNTSUM'
      Enabled = False
      TabOrder = 12
    end
    object RzDBNumericEdit3: TRzDBEdit
      Left = 72
      Top = 208
      Width = 121
      Height = 20
      DataSource = MasterDataSource
      DataField = 'FACTSUM'
      TabOrder = 13
      OnChange = RzDBNumericEdit3Change
    end
    object AccountRadioGroup: TRzRadioGroup
      Left = 408
      Top = 112
      Width = 281
      Height = 49
      Caption = #19994#21153#31867#21035
      Columns = 2
      ItemIndex = 0
      Items.Strings = (
        #39044#25910#27454
        #24212#25910#25910#27454)
      TabOrder = 14
      Transparent = True
      OnClick = AccountRadioGroupClick
    end
  end
  inherited PageControl: TRzPageControl
    Top = 377
    Width = 802
    Height = 7
    ShowShadow = False
    Visible = False
    FixedDimension = 18
    inherited TabSheet1: TRzTabSheet
      inherited RzPanel1: TRzPanel
        Height = 33
      end
      inherited DBGrid: TDBGridEh
        Top = 33
        Height = 300
        DataSource = DetailDataSource
      end
    end
  end
  inherited MasterDataSource: TDataSource
    DataSet = qryAccountOrder
    Left = 624
    Top = 440
  end
  inherited DetailDataSource: TDataSource
    DataSet = qryAccountItem
    Left = 408
    Top = 296
  end
  inherited ActionList: TActionList
    Left = 752
    Top = 176
  end
  inherited DetailsPopupMenu: TPopupMenu
    Left = 656
    Top = 352
  end
  object qryAccountOrder: TADOQuery [8]
    Connection = CommonData.conn
    CursorType = ctStatic
    OnCalcFields = qryAccountOrderCalcFields
    Parameters = <
      item
        Name = 'orderid'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end>
    SQL.Strings = (
      'select * from tb_accountorder where orderid=:orderid')
    Left = 256
    Top = 156
    object qryAccountOrderORDERID: TAutoIncField
      FieldName = 'ORDERID'
      ReadOnly = True
    end
    object qryAccountOrderORDERNUMBER: TStringField
      FieldName = 'ORDERNUMBER'
    end
    object qryAccountOrderORDERDATE: TDateTimeField
      FieldName = 'ORDERDATE'
    end
    object qryAccountOrderORDERTYPE: TStringField
      FieldName = 'ORDERTYPE'
    end
    object qryAccountOrderORDERSTATE: TStringField
      FieldName = 'ORDERSTATE'
    end
    object qryAccountOrderORDERSUMMARY: TStringField
      FieldName = 'ORDERSUMMARY'
      Size = 80
    end
    object qryAccountOrderACCOUNTSTYLE: TStringField
      FieldName = 'ACCOUNTSTYLE'
    end
    object qryAccountOrderBANKID: TIntegerField
      FieldName = 'BANKID'
    end
    object qryAccountOrderACCOUNTNUMBER: TStringField
      FieldName = 'ACCOUNTNUMBER'
      Size = 40
    end
    object qryAccountOrderFACTSUM: TBCDField
      FieldName = 'FACTSUM'
      Precision = 15
      Size = 2
    end
    object qryAccountOrderBEFORESUM: TBCDField
      FieldName = 'BEFORESUM'
      Precision = 15
      Size = 2
    end
    object qryAccountOrderADJUSTSUM: TBCDField
      FieldName = 'ADJUSTSUM'
      Precision = 15
      Size = 2
    end
    object qryAccountOrderTOTALBEFORESUM: TBCDField
      FieldName = 'TOTALBEFORESUM'
      Precision = 15
      Size = 2
    end
    object qryAccountOrderTOTALUSESUM: TBCDField
      FieldKind = fkCalculated
      FieldName = 'TOTALUSESUM'
      ReadOnly = True
      Precision = 17
      Size = 2
      Calculated = True
    end
    object qryAccountOrderTOTALSUM: TBCDField
      FieldName = 'TOTALSUM'
      Precision = 15
      Size = 2
    end
    object qryAccountOrderHAVEBALANCESUM: TBCDField
      FieldName = 'HAVEBALANCESUM'
      Precision = 15
      Size = 2
    end
    object qryAccountOrderREMAINBALANCESUM: TBCDField
      FieldName = 'REMAINBALANCESUM'
      Precision = 15
      Size = 2
    end
    object qryAccountOrderBALANCESUM: TBCDField
      FieldName = 'BALANCESUM'
      Precision = 15
      Size = 2
    end
    object qryAccountOrderACTORNAME: TStringField
      FieldName = 'ACTORNAME'
    end
    object qryAccountOrderORDERNOTE: TStringField
      FieldName = 'ORDERNOTE'
      Size = 60
    end
    object qryAccountOrderCLIENTID: TIntegerField
      FieldName = 'CLIENTID'
    end
    object qryAccountOrderISCOMPLETE: TStringField
      FieldName = 'ISCOMPLETE'
      FixedChar = True
      Size = 2
    end
    object qryAccountOrderISCENSOR: TStringField
      FieldName = 'ISCENSOR'
      FixedChar = True
      Size = 2
    end
    object qryAccountOrderCENSOR: TStringField
      FieldName = 'CENSOR'
    end
    object qryAccountOrderACCOUNTSUM: TBCDField
      FieldName = 'ACCOUNTSUM'
      Precision = 15
      Size = 2
    end
    object qryAccountOrderACCOUNTNOTE: TStringField
      FieldName = 'ACCOUNTNOTE'
      Size = 80
    end
    object qryAccountOrderCOMPANYID: TIntegerField
      FieldName = 'COMPANYID'
    end
    object qryAccountOrderISBEFORE: TStringField
      FieldName = 'ISBEFORE'
      FixedChar = True
      Size = 2
    end
    object qryAccountOrderREMAINBEFORESUM: TBCDField
      FieldKind = fkCalculated
      FieldName = 'REMAINBEFORESUM'
      ReadOnly = True
      Precision = 18
      Size = 2
      Calculated = True
    end
    object qryAccountOrderACCOUNTTYPE: TStringField
      FieldName = 'ACCOUNTTYPE'
    end
  end
  object qryAccountItem: TADOQuery [9]
    Connection = CommonData.conn
    CursorType = ctStatic
    Parameters = <
      item
        Name = 'orderid'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end>
    SQL.Strings = (
      'select * from tb_accountitem where orderid=:orderid'
      '')
    Left = 312
    Top = 156
  end
  inherited FrameController: TRzFrameController
    DisabledColor = 33023
    Left = 192
  end
  object qryClient: TADOQuery
    Connection = CommonData.conn
    Parameters = <>
    Left = 256
    Top = 100
  end
  object dsClient: TDataSource
    DataSet = qryClient
    Left = 296
    Top = 108
  end
  object qryBank: TADOQuery
    Connection = CommonData.conn
    CursorType = ctStatic
    Parameters = <
      item
        Name = 'companyid'
        Attributes = [paSigned, paNullable]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end>
    SQL.Strings = (
      'select * from tb_bank where 1=1 ')
    Left = 376
    Top = 108
  end
  object dsBank: TDataSource
    DataSet = qryBank
    Left = 328
    Top = 116
  end
end
